<template>
  <div id="tabbar">
    <ul id="nav">
      <!-- active-class自定义高亮属性 -->
      <router-link to="/home" tag="li" active-class="hover">首页</router-link>
      <router-link to="/news" tag="li" active-class="hover">新闻</router-link>
      <router-link to="/zixun" tag="li" active-class="hover">资讯</router-link>
      <router-link to="/mine" tag="li" active-class="hover">我的</router-link>
    </ul>
  </div>
</template>
<script>
export default {};
</script>
<style lang="scss" scoped >
#nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background-color: #2c3e50;
  li {
    width: 25%;
    float: left;
    color: #fff;
  }
  .router-link-exact-active {
    color: #f00;
  }
  .hover {
    font-weight: bold;
  }
  a {
    font-weight: bold;
    color: #2c3e50;
  }
}
</style>
